export default {
  state: {
    //存储路由的堆栈记录
    location: ["/home"],
    //当前页面在路由堆栈中的下标
    pageindex: 0,
    brows: "",
  },
  mutations: {
    updatalocation(state, payload) {
      state.location.push(payload);
    },
    updatapageindexjia(state) {
      state.pageindex = state.pageindex + 1;
    },
    updatapageindexjian(state) {
      state.pageindex = state.pageindex - 1;
    },
    updatapageindex(state, payload) {
      state.pageindex = payload;
    },
    updataBrows(state, payload) {
      state.brows = payload.data;
      payload.browsreturn(state.brows);
    },
  },
  getters: {},
  actions: {},
};
